/* 菜单项 */
.gy-menu > .gy-menu-item {
  display: flex;
  height: 2.3rem;
  padding: 0 1rem;
  align-items: center;
  border-bottom: 1px solid #eee;
  font-size: .8rem;
}

/* 菜单名称 */
.gy-menu > .gy-menu-item > .gy-menu-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #333;
}

/* 菜单信息 */
.gy-menu > .gy-menu-item > .gy-menu-value {
  max-width: 5rem;
  height: 1rem;
  line-height: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #999;
}

/* 下级操作引导图标 */
.gy-menu > .gy-menu-item > .gy-menu-icon {
  margin-left: .3rem;
  color: #999;
}

/* 切换开关 */
.gy-menu > .gy-menu-item > .gy-switch {
  position: relative;
  box-sizing: content-box;
  width: 2.6rem;
  height: 1.4rem;
  border: 1px solid #ccc;
  outline: 0;
  border-radius: .75rem;
  background-color: rgba(0,0,0,0.1);
  transition: background-color .3s, border .3s;
  /* 去掉webkit内核里默认的样式 */
  -webkit-appearance: none;
  /* 去掉webkit内核里默认的点击效果 */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* 选中状态下，改变开关边框和背景色 */
.gy-menu > .gy-menu-item > .gy-switch:checked {
  border-color: #07c160;
  background-color: #07c160;
}
/* 使用::after伪元素实现原型按钮的样式 */
.gy-menu > .gy-menu-item > .gy-switch::after {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: .7rem;
  background-color: #ffffff;
  box-shadow: 0 0 2px #999;
  transition: left .3s;
}
/* 选中状态下更改原型按钮的位置 */
.gy-menu > .gy-menu-item > .gy-switch:checked::after {
  left: 1.2rem;
}
